package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"vipshop-app/api/internal/config"
	"vipshop-app/vipshopapc/vipshopapcclient"
)

type ServiceContext struct {
	Config     config.Config
	VipShopApc vipshopapcclient.Vipshopapc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:     c,
		VipShopApc: vipshopapcclient.NewVipshopapc(zrpc.MustNewClient(c.VipShopApc)),
	}
}
